package edu.gmu.messages;

import edu.gmu.middleware.Message;
import edu.gmu.streams.BlockInputStream;
import edu.gmu.streams.BlockOutputStream;
import java.io.IOException;

public class NeighborsResponse implements Message
{ 
    public Neighbors neighbors = null;

    public NeighborsResponse( )
    {

    }
    
    public NeighborsResponse( Neighbors neighbors )
    {
        this.neighbors = neighbors;
    }


    public void marshal(BlockOutputStream stream) throws IOException
    {
        this.neighbors.marshal(stream);
    }

    public void unmarshal(BlockInputStream stream) throws IOException
    {
        this.neighbors = new Neighbors();
        this.neighbors.unmarshal(stream);
    }
}
